<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="Xenon Boostrap Admin Panel" />
	<meta name="author" content="" />
	<title>测试SSM</title>
</head>
<body >
	<form action="${ctx}/user/users" method="post">
		账号:<input type="text" name="username">
		密码:<input type="text" name="password">
		<input type="submit" value="保存"/>
	</form>
	<h1></h1>
 	<table border="1">
		<thead>
		    <tr>
				<td>ID</td>
				<td>账号</td>
				<td>密码</td>
			</tr>
		</thead>
		<c:forEach items="${users}" var="user">
			<tr>
				<td>${user.id}</td>
				<td>${user.username}</td>
				<td>${user.password}</td>
			</tr>
		</c:forEach>
	</table>

</body>
</html>